<?php
$SITEROOT = '../';
include_once($SITEROOT . 'assets/snippets/shoppingCart/dbconfig.inc.php');
include_once($SITEROOT . 'assets/snippets/shoppingCart/kiwee.class.php');

$kiwee = new Kiwee();

if(IN_MANAGER_MODE!="true") die('<b>' . $_lang['kiwee_include_order_error'] . '</b>');
if ($_SESSION['mgrPermissions']['settings'] != "1") { echo 'Insufficient permissions for this module.'; exit; }

$theme = $manager_theme ? "$manager_theme/":"";
// initialize page view state - the $_PAGE object
$modx->manager->initPageViewState();

// get and save search string
if($_REQUEST['op']=='reset') {
	$sqlQuery = $query = '';
	$_PAGE['vs']['search']='';
}
else {
	$sqlQuery = $query = isset($_REQUEST['search'])? $_REQUEST['search']:$_PAGE['vs']['search'];
	if(!is_numeric($sqlQuery)) $sqlQuery = mysql_escape_string($query);
	$_PAGE['vs']['search'] = $query;
}

// get & save listmode
$listmode = isset($_REQUEST['listmode']) ? $_REQUEST['listmode']:$_PAGE['vs']['lm'];
$_PAGE['vs']['lm'] = $listmode;

// context menu
include_once $base_path . "manager/includes/controls/contextmenu.php";
$cm = new ContextMenu("cntxm", 150);
$cm->addItem($_lang["view_log"],"js:menuAction(1)","media/style/" . ($manager_theme ? "$manager_theme/":"") ."images/icons/save.gif");
$cm->addSeparator();
$cm->addItem($_lang["delete"], "js:menuAction(2)","media/style/" . ($manager_theme ? "$manager_theme/":"") ."images/icons/delete.gif",(!$modx->hasPermission('delete_eventlog') ? 1:0));
echo $cm->render();
?>
<style type="text/css">
	.kiwee-hdr {
		margin-top: 5px; 
		font-size: 15px;
		color: #3f3f3f;
		font-weight: bold;
	}
	
	.kiwee-det {
		font-size: 12px;
		color: #464646;
		margin-left: 15px;
		margin-right: 30%;
	}
	
	.kiwee-msc {
		width: 436px;
		padding-left: 20px;
		padding-right: 10px;
		float: right;
	}
	
	.kiwi-txt {
		width: 50%;
	}
	
	.kiwee-subhdr {
		margin-top: 5px;
		font-size: 15px;
		color: #464646;
		margin-right: 30%;
		margin-left: 15px;
		font-weight: bold;
	}
	
	.kiwee-subdet {
		margin-left: 10px;
		font-size: 12px;
		color: #464646;
		margin-left: 30px;
		margin-right: 30%;
	}
	
</style>
<div class="subTitle">
<span class="right"></span>
</div>

<div class="sectionHeader"><?php echo $_lang["kiwee_overview_header"]; ?></div>
<div class="sectionBody">
	<div class="kiwee-msc" id="mascot"><a href="http://www.kiweecommerce.org"><img src="actions/includes/Kiwee.gif" style="height: 108px; width: 436px;"/></a></div>
<!--	<div class="kiwee-txt" id="kiwitext"><img src="actions/includes/Kiwi-text.gif" /></div>-->
	<div class="kiwee-hdr" id="philhdr"><?php echo $_lang['kiwee_philosophy_hdr']; ?></div>
	<div class="kiwee-det" id="phildet">
	<?php echo $_lang['kiwee_philosophy_det']; ?>
	</div>
	
	<div class="kiwee-hdr" id="whykiweehdr"><?php echo $_lang['kiwee_whykiwee_hdr']; ?></div>
	<div class="kiwee-det" id="whykiweedet">
		<?php echo $_lang['kiwee_whykiwee_det']; ?>
	</div>
	
	<div class="kiwee-hdr" id="usehdr"><?php echo $_lang['kiwee_use_hdr']; ?></div>
	<div class="kiwee-det" id="usedet">
	<?php echo $_lang['kiwee_use_det']; ?>
	</div>

	<div class="kiwee-subhdr" id="listhdr"><?php echo $_lang['kiwee_listopts_hdr']; ?></div>
	<div class="kiwee-subdet" id="listdet">
		<?php echo $_lang['kiwee_listopts_det']; ?>
	<div class="kiwee-subhdr" id="itemhdr"><?php echo $_lang['kiwee_itemmain_hdr']; ?></div>
	<div class="kiwee-subdet" id="itemdet">
		<?php echo $_lang['kiwee_itemmain_det']; ?>
	</div>
</div>